import  axios from 'axios'



export default class CaseCaseTypeService {
    static caseCaseTypeService =null;
    static getInstance(){
        if(this.caseCaseTypeService == null){
            this.caseCaseTypeService = new CaseCaseTypeService()
        }
        return this.caseCaseTypeService
    }

    /**
     * 查询所有案件类型
     * @returns {Promise<AxiosResponse<T>>}
     */
    list(){
        return axios.get("http://localhost/cwinout/caseType")
    }
}